/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.gob.pnp.actions;

import com.opensymphony.xwork2.*;
import java.sql.*;
import java.util.*;
import pe.gob.pnp.despachadores.*;

/**
 *
 * @author Administrador
 */
public class ListaConcepto extends ActionSupport{

    private List<Concepto> lstConcepto;
    @Override
    public String execute(){
        try{
            setLstConcepto(ConceptoDespachador.obtenerConcepto());
        }catch(SQLException ex){
            ex.printStackTrace();
            return ERROR;
        }
        return SUCCESS;
    }
    /**
     * @return the lstConcepto
     */
    public List<Concepto> getLstConcepto() {
        return lstConcepto;
    }

    /**
     * @param lstConcepto the lstConcepto to set
     */
    public void setLstConcepto(List<Concepto> lstConcepto) {
        this.lstConcepto = lstConcepto;
    }

}
